home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / Projects / Questions & Answers / Q&A Programming Music / How to recreate visualizer < prev    next >
Encoding:
Text File  |  1998-10-26  |  889 b   |  21 lines  |  [TEXT/ScoM]

  1. HOW TO RECREATE VISUALIZER
  2.  
  3. >        Can't I simply use the "convert vector to symbol" command allong with all
  4. >of the necessary scaling and sample lenght functions which define how the
  5. >conversion will take place?  I just can't seem to figure out the correct
  6. >syntax to do this.
  7.  
  8. Here is principle how to chaing the functions. The execution happens
  9. from innermost to the outermost function. Make some experiments with
  10. these functions. The first one conversts a symbol pattern to a vector
  11. pattern which is then rounded to a range 0 .. 127 and then bound to
  12. atom mater1. 
  13.  
  14. (setq mater1 (vector-round 0 127 (symbol-to-vector ... <symbol>)))
  15.  
  16. Here you first select a subrange of a vector, which is then quantized to
  17. a given length and resolution, which is then rounded to a range 0 .. 127
  18. and bound to mater2.
  19.  
  20. (setq mater2 (vector-round 0 127 (vector-quantize ... (subrange ... <vector>))))
  21.